package lu.test;

import java.io.Serializable;

public class MenuItemInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6517059539360932890L;
	private int id; // ObjectID
	private int owner; // ObjectParentID
	private String name;// 菜名
	private String icon;// 菜类的图标
	private double price; // 单价
	private String unit; // 单位的ObjectID
	private String strUnit; // 文字单位
	private boolean State;// 是否停用状态，0为正常，1为停用。
	private boolean ProdIsCombo;// 是否为套餐，true为套餐
	private String CDProdObjGUID;// 若为套餐，生成与套餐关连的GUID
	private boolean isMarketPrice;// 是否时价
	private String shortName;
	/*
	 * @authority : zysun new add field: description、smallDishIcon、bigDishIcon
	 */
	private String description;// 菜品描述
	private float comment;// 菜品評分
	private String smallDishIcon;// 菜品小图
	private String bigDishIcon;// 菜品大图

	/**********************************************************/

	@Override
	public boolean equals(Object o) {
		return this.id == ((MenuItemInfo) o).getId();
	}

	public String getStrUnit() {
		return strUnit;
	}

	public void setStrUnit(String strUnit) {
		this.strUnit = strUnit;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOwner() {
		return owner;
	}

	public void setOwner(int owner) {
		this.owner = owner;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public boolean isOuOfService() {
		return State;
	}

	public void setState(boolean state) {
		State = state;
	}

	public boolean isProdIsCombo() {
		return ProdIsCombo;
	}

	public void setProdIsCombo(boolean prodIsCombo) {
		ProdIsCombo = prodIsCombo;
	}

	public String getCDProdObjGUID() {
		return CDProdObjGUID;
	}

	public void setCDProdObjGUID(String cDProdObjGUID) {
		CDProdObjGUID = cDProdObjGUID;
	}

	public boolean isMarketPrice() {
		return isMarketPrice;
	}

	public void setMarketPrice(boolean isMarketPrice) {
		this.isMarketPrice = isMarketPrice;
	}

	/*
	 * zysun new add function
	 */
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public float getComment() {
		return comment;
	}

	public void setComment(float comment) {
		this.comment = comment;
	}

	public String getSmallDishIcon() {
		return smallDishIcon;
	}

	public void setSmallDishIcon(String smallDishIcon) {
		this.smallDishIcon = smallDishIcon;
	}

	public String getBigDishIcon() {
		return bigDishIcon;
	}

	public void setBigDishIcon(String bigDishIcon) {
		this.bigDishIcon = bigDishIcon;
	}

	public boolean isMenuClass() {
		return "Type".equals(this.unit);
	}

	/*****************************************************************/
	//暂时获取单一小类模拟数据
	public MenuItemInfo(){
		super();
		this.id = 1;
		this.owner = -1;
		this.name = "测试小类";
		this.icon = "ic_best";
		this.price = 0.0f;
		this.unit = "";
		this.strUnit = "";
		this.State = true;
		this.ProdIsCombo = false;
		this.CDProdObjGUID = "";
		this.isMarketPrice = false;
		this.shortName = "";
	}
	
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

}
